<?php
/*
 * Copyright 2013 by Jerrick Hoang, Ivy Xing, Sam Roberts, James Cook, 
 * Johnny Coster, Judy Yang, Jackson Moniaga, Oliver Radwan, 
 * Maxwell Palmer, Nolan McNair, Taylor Talmage, and Allen Tucker. 
 * This program is part of RMH Homebase, which is free software.  It comes with 
 * absolutely no warranty. You can redistribute and/or modify it under the terms 
 * of the GNU General Public License as published by the Free Software Foundation
 * (see <http://www.gnu.org/licenses/ for more information).
 * 
 */

/*
 * Created on Feb 24, 2008
 * @author max
 */

include_once(dirname(__FILE__).'/../domain/Week.php');
include_once(dirname(__FILE__).'/../domain/Shift.php');
include_once(dirname(__FILE__).'/../domain/Appointment.php');
include_once(dirname(__FILE__).'/../database/dbWeeks.php');
include_once(dirname(__FILE__).'/../database/dbShifts.php');

echo 'testing dbWeeks functions</br>';
testget_dbWeeks();


// tests the retrieve_client() function in dbClients.php
function testget_dbWeeks() {
    
   $week =  get_dbWeeks('04-28-14');
if ($week == null)
       echo 'no records retrieved'.'</br>';
   else {
       error_log('in testdbWeeks, retrieved a week');
       echo 'the name of the week is is '.$week->get_name().'</br>';
      echo 'the id is ' .$week->get_id().'</br>';
      echo 'get dates ' .$week->get_dates().'</br>'; 
      echo 'get status '.$week->get_status().'</br>';
      
   }




}